package beautiful.butterfly.schedule.task_manager;

import java.util.concurrent.atomic.AtomicLong;


public class Statistics {
    private AtomicLong taskFetchNum = new AtomicLong(0);
    private AtomicLong fetchDataCount = new AtomicLong(0);
    //
    private AtomicLong dealDataSuccess = new AtomicLong(0);
    private AtomicLong dealDataFail = new AtomicLong(0);
    //
    private AtomicLong dealSpendTime = new AtomicLong(0);
    private AtomicLong otherCompareCount = new AtomicLong(0);

    public void addTaskFetchNum(long value) {
        this.taskFetchNum.addAndGet(value);
    }

    public void addFetchDataCount(long value) {
        this.fetchDataCount.addAndGet(value);
    }

    public void addDealDataSucess(long value) {
        this.dealDataSuccess.addAndGet(value);
    }

    public void addDealDataFail(long value) {
        this.dealDataFail.addAndGet(value);
    }

    public void addDealSpendTime(long value) {
        this.dealSpendTime.addAndGet(value);
    }

    public void addOtherCompareCount(long value) {
        this.otherCompareCount.addAndGet(value);
    }

}
